
let comp = null;

let util = {
    
    bind(that) {
        comp = that;
        
        comp.tabWidth = this.getTabWidth() + 'px';
    },
    getTabWidth() {
        let tab = document.getElementById('tab');
        let tabWidth = tab.getBoundingClientRect().width;
        return tabWidth;
    }
}

export default util;